PGetParaOptions

Gets the paragraph options applied to the selected text or to the paragraph containing the insertion point.


Query results

PMBool bKeepTog;
false for off
true for Keep Lines Together
PMBool bColumnBreak;
false for off
true for Column Break Before
PMBool bPageBreak;
false for off
true for Page Break Before
PMBool bIncludeTOC;
false for off
true for Include in Table of Contents
short nKeepWith;
0 none
1 or 2 or 3 lines for Keep with Next
short nWidow;
0 none
1 or 2 or 3 lines for Widow Control
short nOrphan;
0 none
1 or 2 or 3 lines for Orphan Control
Defining or editing a style. If you are defining or editing a style using the PStyleBegin command, PageMaker gets the paragraph options for that style rather than for the selected text.

Multiple settings. If multiple paragraphs are selected and they have different options applied to them, PageMaker returns -2 for the parameters that conflict.

Pointer tool active. If the pointer tool is active, PageMaker gets the default paragraph options.

Example. Change paragraph options using the PParaOptions command.

PGetParaOptions paraOpts;
if (paraOpts.nWidow == 0) {
    paraOpts.nWidow = 3; // change to 3 lines
    PParaOptions(paraOpts);
} 


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support